<!--<link href="css/global.css" rel="stylesheet" type="text/css" />-->
<?php

include("utils.php");

if($_SESSION['siteuserId']=="")

{

	header("location:index.php");

}

if($_POST['mode']=="change_status")

{

	change_status();

}

else

{

	main_content("main();");

}

function main()

{



?>

 <link rel="stylesheet" type="text/css" media="all" href="css/calendar-win2k-cold-1.css" title="win2k-cold-1" />



  <script type="text/javascript" src="JavaScripts/calendar.js"></script>



  <script type="text/javascript" src="JavaScripts/calendar-en.js"></script>



  <script type="text/javascript" src="JavaScripts/calendar-setup.js"></script>



<script language="JavaScript">

//here you place the ids of every element you want.

var ids=new Array('manualTable','hideshow');



function switchid(id)

{	

	hideallids();

	showdiv(id);



	//document.getElementById(pricing_method).value;

	//document.update_adspace.submit();

}



function hideallids()

{

	//loop through the array and hide each element by id

	for (var i=0;i<ids.length;i++)

	{

		hidediv(ids[i]);

	}

}



function hidediv(id)

{

	//safe function to hide an element with a specified id

	if (document.getElementById) 

	{ // DOM3 = IE5, NS6

		document.getElementById(id).style.display = 'none';

	}

	else 

	{

		if (document.layers) 

		{ // Netscape 4

			document.id.display = 'none';

		}

		else 

		{ // IE 4

			document.all.id.style.display = 'none';

		}

	}

}



function showdiv(id) 

{

	//safe function to show an element with a specified id

		  

	if (document.getElementById) { // DOM3 = IE5, NS6

		document.getElementById(id).style.display = '';

	}

	else {

		if (document.layers) { // Netscape 4

			document.id.display = '';

		}

		else { // IE 4

			document.all.id.style.display = '';

		}

	}



}



function radioForm(id)

{

	if(document.getElementById)

	{

		document.getElementById(id).style.display = '';

	}

	else

	{

		document.getElementById(id).style.display = 'none';

	}

	

} 





function changeValue(strValue, strLength, countId) 

	{

        if (strValue.length <= strLength) {

            if (strValue != null) {

                document.getElementById(countId).innerHTML = (strLength - strValue.length);

                if (countId == 'tagsCount' && (strValue.indexOf('"') >= 0 || strValue.indexOf("'") >= 0 || strValue.indexOf("|") >= 0 || strValue.indexOf("\\") >= 0)) {

                    var message = "Invalid tag, please re-enter tags without |, \', \", \\ in it.";

                    alert(message);

            }

            }

        }

        else {

            document.getElementById(countId).innerHTML = "<span style=\"color:red\">Too many characters for description!</span>";

        }

    }



function formSubmit()

{

	document.updateAdSpace.submit();



}

</script>



<?php

	//include_once("calender.php");



	// echo "select * from adspace_master where adspaceId='".$_REQUEST['sid']."'";



	$fetSpacePriceType=mysql_fetch_array(mysql_query("select * from adspace_master where adspaceId='".$_REQUEST['sid']."'"));



	$fetchSpaceType=mysql_fetch_array(mysql_query("select * from adspace_details where adspaceId='".$_REQUEST['sid']."'"));



	$adSpacename=$fetSpacePriceType['adSpaceName'];

	$desc=$fetSpacePriceType['description'];

	$tag=$fetSpacePriceType['tags'];

	$pricestatus=$fetSpacePriceType['auto_manu'];

	$clickday=$fetSpacePriceType['clickPerDay'];



	$chkPriceTable=mysql_query("select * from ".PRICE." where adspaceId='".$_REQUEST['sid']."' and auto_manu='manual'");

	

	$countvalue=mysql_num_rows($chkPriceTable);



	

	$chkPriceAutoval=mysql_query("select adspaceId from ".PRICE." where adspaceId='".$_REQUEST['sid']."' and auto_manu='auto'");

	$countAutovalue=mysql_num_rows($chkPriceAutoval);



	

		if($countvalue==0)

		{

			

	

	for($i=1;$i<=3;$i++)

	{

	$insertmanualData1= "insert into ".PRICE." set adspaceId='".$_REQUEST['sid']."', auto_manu='manual'";

	mysql_query($insertmanualData1);

	}

			

		}

	

	if($countAutovalue==0)

	{

	$insertautoData1= "insert into ".PRICE." set ammount='10' ,duration='1' ,adspaceId='".$_REQUEST['sid']."', auto_manu='auto',default='1'";

	mysql_query($insertautoData1);



	

	$insertautoData2= "insert into ".PRICE." set ammount='30' ,duration='3' ,adspaceId='".$_REQUEST['sid']."', auto_manu='auto',default='1'";

	mysql_query($insertautoData2);



	

	$insertautoData3= "insert into ".PRICE." set ammount='70' ,duration='7' ,adspaceId='".$_REQUEST['sid']."', auto_manu='auto' ,default='1'";

	mysql_query($insertautoData3);

	}



	if(isset($_POST['descTag']))

	{

		//echo '<script>alert("abc");</script>';

		$insertSiteData=mysql_query("update adspace_master set description='".$_POST['space_description']."', tags='".$_POST['tags']."', adSpaceName='".$_REQUEST['space_name']."' where adspaceId='".$_REQUEST['sid']."'");

	//echo "update adspace_master set description='".$_POST['space_description']."', tags='".$_POST['tags']."' where adspaceId='".$_REQUEST['sid']."'";exit;

		//header("location:edit_adspace.php?sid=".$_REQUEST['sid']);

		echo "<script>window.location='main_redirect.php?sid=".$_REQUEST['sid']."';</script>";

	}



	if(isset($_POST['update']))

	{

		

	if(isset($_POST['pricing_method']))

	{

		

		$updateSpacemaster=mysql_query("update adspace_master set priceType='".$_POST['pricing_method']."' where adspaceId='".$_REQUEST['sid']."'");

	}

	

	

		while($fetManualData=mysql_fetch_array($chkPriceTable))

		{

		

		//echo '<script>alert("'.$postHidval.'");</script>';

	$postHidPriceval='priceshow_'.$fetManualData['price_id'];

	$postHidDayval='dayshow_'.$fetManualData['price_id'];

	$postHidval='hidManuVal_'.$fetManualData['price_id'];



	$updatemanualData1= "update ".PRICE." set ammount='".$_POST[$postHidPriceval]."' ,duration='".$_POST[$postHidDayval]."' , auto_manu='manual' where price_id='".$_POST[$postHidval]."' and adspaceId='".$_REQUEST['sid']."'";

	//echo $updatemanualData1;

	mysql_query($updatemanualData1);

	

		}

	



	$selOnclickCalculation=mysql_query("select * from ".PRICE." where adspaceId='".$_REQUEST['sid']."'");

	while($fetchVal=mysql_fetch_array($selOnclickCalculation))

	{

		//echo 'sdfsf';

		//echo "<br>".$fetchVal['ammount'].'---'.$fetchVal['duration'];

		$arr['ammo'][] = $fetchVal['ammount'];

		$arr['dur'][] = $fetchVal['duration'];

		

		

	}



	foreach ($arr as $key => $value)

	{



	$total='';

	for($i=0;$i<count($arr[$key]);$i++)

	{

		//echo "value===".$arr[$key][$i];

		$total=(float)($total+$arr[$key][$i]);

	}

	$arrayTotal[]=$total;

	}

	$clickAount=($arrayTotal[0]/$arrayTotal[1]);



	$query_space_insert="update ".ADSPSCEMASTER." set costPerClick='".$clickAount."' where adspaceId='".$_REQUEST['sid']."'";



	

	mysql_query($query_space_insert);

	header("location:all_adspaces.php");



	}

?>



<form id="updateAdSpace" name="updateAdSpace" action="" method="post" class="tight-layout"><br />

<br />



<table border="0" align="center" cellpadding="0" cellspacing="0" class="admob-Height">
      <tr>
        <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-Height">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="10"><img src="images/admob-leftPanelTopLeft.jpg" alt="" width="10" height="34" /></td>
                  <td class="admob-LeftPanelTopLeft"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-RightPanelWhiteContent">
                      <tr>
                        <td>Campaign manager</td>
                        </tr>
                  </table></td>
                  <td width="10"><img src="images/admob-leftPanelTopRight.jpg" alt="" width="10" height="34" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top" class="admob-RightPanelMiddleBg"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-Height">
              <tr>
                <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-Height">
                  <tr>
                    <td width="400" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="admob-SquareBoxTilteBg"><input id="spaceName" name="space_name" type="text" class="admob-InputBox" value="<?=$adSpacename;?>" onchange="isChanged=true;" /> 
                          AdSpace Name</td>
                      </tr>
                      <tr>
                        <td class="admob-SquareBoxBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                          <tr>
                            <td height="20"><strong>Available: 04/09/09</strong></td>
                          </tr>
                          <tr>
                            <td align="center"><a href="#"><img src="images/logo.jpg" alt="" width="311" height="107" border="0" /></a></td>
                          </tr>
                          <tr>
                            <td height="20"><a href="#" class="admob-RightLink">http://www.esolzdemos.com/</a></td>
                          </tr>
                          <tr>
                            <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                              <tr>
                                <td width="130" height="20">Category :</td>
                                <td>Art &amp; Entertainment</td>
                                </tr>
                              <tr>
                                <td height="20">Status:</td>
                                <td>Active</td>
                                </tr>
                              <tr>
                                <td height="20">Site Rating:</td>
                                <td>test</td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td><a href="edit_websites.php?sid=<?=$_REQUEST['sid']?>" title="Edit Website" class="admob-RightLink">Edit Website</a></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                    <td width="11" valign="top">&nbsp;</td>
                    <td width="700" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="admob-SquareBoxTilteBg">Pricing Information</td>
                          </tr>
                          <tr>
                            <td class="admob-SquareBoxBorder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="13"><img src="images/admob-InnerBoxTopLeft.jpg" alt="" width="13" height="30" /></td>
                                          <td class="admob-InnerBoxTopBg">Edit Price</td>
                                          <td width="13"><img src="images/admob-InnerBoxTopRight.jpg" alt="" width="13" height="30" /></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td valign="top" class="admob-InnerBoxBotomBorder"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="tablePrice" name="table_price">
                                      <tr>
                                        <td class="admob-FormContent"><strong>The current average CPC for this Ad Space is being calculated.</strong><br />Current pricing rule is: <a href="#" onclick="javascript:openWindow('help-auto-pricing.php?sid=25a45ce5c295c9f9a8b55398cfd28099', 500, 420, true, true);return false;" class="admob-RightLink">What's this?</a></td>
                                      </tr>
                                      <tr>
                                        <td class="admob-FormContent"><input id="pricing_method" name="pricing_method" value="auto" onclick="javascript:switchid('hideshow');" type="radio" <?php if($fetSpacePriceType['priceType']=='auto') echo 'checked="true"';?>>
                                          <label for="pricing_method" class="admob-FormContent">Auto-Price</label><br />
                                          <input id="pricing_method" name="pricing_method" value="manual" onclick="javascript:switchid('manualTable');" type="radio" <?php if($fetSpacePriceType['priceType']=='manual') echo 'checked="true"';?>>
                                          <label for="manuallyPricingRadio" title="Edit pricing options." class="admob-FormContent">Manually Priced</label></td>
                                      </tr>
                                      <tr>
                                        <td><table border="0" align="center" cellpadding="0" cellspacing="0">
                                          <tr>
                                            <td class="admob-TabTitleArea"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="100" class="admob-TitleBgwithContent">Days</td>
                                                  <td width="1"></td>
                                                  <td width="160" class="admob-TitleBgwithContent">Avg. Clicks</td>
                                                  <td width="1"></td>
                                                  <td width="160" class="admob-TitleBgwithContent">Markup %</td>
                                                  <td width="1"></td>
                                                  <td width="160" class="admob-TitleBgwithContent">Desired CPC</td>
                                                  <td width="1"></td>
                                                  <td width="100" class="admob-TitleBgwithContent">Price</td>
                                                </tr>
                                            </table></td>
                                            </tr>
                                          <tr>
                                            <td class="admob-listboxborder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                      <tr>
                                                        <td class="admob-ListingBottomBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                            <tr>
                                                              <td width="99" height="25" align="center"><input name="textfield2" type="text" class="admob-listinginputBoxArea" /></td>
                                                              <td width="1" align="center"></td>
                                                              <td width="160" align="center">*New*</td>
                                                              <td width="1" align="center"></td>
                                                              <td width="160" align="center">*New*</td>
                                                              <td width="1" align="center"></td>
                                                              <td width="160" align="center">*New*</td>
                                                              <td width="1" align="center"></td>
                                                              <td width="99" align="center"><input name="textfield25" type="text" class="admob-listinginputBoxArea" /></td>
                                                            </tr>
                                                        </table></td>
                                                      </tr>

                                                  </table></td>
                                                </tr>
                                                <tr>
                                                  <td class="admob-ListingBottomBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                    <tr>
                                                      <td width="99" height="25" align="center"><input name="textfield22" type="text" class="admob-listinginputBoxArea" /></td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="99" align="center"><input name="textfield26" type="text" class="admob-listinginputBoxArea" /></td>
                                                    </tr>
                                                  </table></td>
                                                </tr>
                                                <tr>
                                                  <td class="admob-ListingBottomBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                    <tr>
                                                      <td width="99" height="25" align="center"><input name="textfield23" type="text" class="admob-listinginputBoxArea" /></td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="99" align="center"><input name="textfield27" type="text" class="admob-listinginputBoxArea" /></td>
                                                    </tr>
                                                  </table></td>
                                                </tr>
                                                <tr>
                                                  <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                                    <tr>
                                                      <td width="99" height="25" align="center"><input name="textfield24" type="text" class="admob-listinginputBoxArea" /></td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="160" align="center">*New*</td>
                                                      <td width="1" align="center"></td>
                                                      <td width="99" align="center"><input name="textfield28" type="text" class="admob-listinginputBoxArea" /></td>
                                                    </tr>
                                                  </table></td>
                                                </tr>
                                            </table></td>
                                            </tr>
                                        </table></td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td>
                              </tr>
                              <tr>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="13"><img src="images/admob-InnerBoxTopLeft.jpg" alt="" width="13" height="30" /></td>
                                          <td class="admob-InnerBoxTopBg">Current Dates Available</td>
                                          <td width="13"><img src="images/admob-InnerBoxTopRight.jpg" alt="" width="13" height="30" /></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                                  <tr>
                                    <td valign="top" class="admob-InnerBoxBotomBorder">
									<input id="dates" name="dates" value="2009-04-09" type="hidden">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td align="center"><?php include_once 'calender.php';?></td>
                                      </tr>
                                    </table></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td align="center"><table border="0" align="center" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td><input id="updateButton" name="update" onclick="return (validateUpdateSpaceForm(update_adspace) && validateAutoPrice())" type="submit" class="admob-InputButton" value="Save" /><input name="referrer" value="" type="hidden"></td>
                                    <td width="14">&nbsp;</td>
                                    <td><input name="cancel" type="submit" onclick="javascript:window.location='all_adspaces.php';" class="admob-InputButton" value="Cancel" /></td>
                                  </tr>
                                  
                                </table></td>
                              </tr>
                            </table></td>
                          </tr>
                        </table></td>
                      </tr>

                    </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="admob-TabTitleArea"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="450" class="admob-TitleBgwithContent">Description</td>
                          <td></td>
                          <td width="328" class="admob-TitleBgwithContent">Statistical Information</td>
                          <td></td>
                          <td width="329" class="admob-TitleBgwithContent">Impressions by Country</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td class="admob-listboxborder"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                      <td width="450" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                        <tr>
                                          <td><strong>Description of site:</strong><br />esolzdemos</td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td>
                                        </tr>
                                        <tr>
                                          <td><strong>Description of ad space:</strong><br />
                                          (Characters left: <?php if($desc!='') { echo (255-strlen($desc));} else { ?>255<?php } ?> )<br />
                                            <textarea id="spaceDescription" name="space_description" class="admob-SmallTextField" onchange="isChanged=true;" onkeyup="javascript:changeValue(this.value, 255, 'descriptionCount');"><?=$desc;?>
                                            </textarea></td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td>
                                        </tr>
                                        <tr>
                                          <td><strong>Tags:&nbsp;[Characters left: <?php if($tag!='') { echo (100-strlen($tag));} else { ?>100<?php } ?>]</strong><br />
										    <input name="tags" id="tags" class="admob-SmallerTextField" maxlength="100" value="<?=$tag;?>" onchange="isChanged=true;" onkeyup="javascript:changeValue(this.value, 100, 'tagCount');" type="text"></td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="10" /></td>
                                        </tr>
                                        <tr>
                                          <td>Note:&nbsp;Separate multiple tags with commas. To enter a tag with multiple  words, separate the words using spaces. (e.g. car, vehicle, sport car,  compact car)</td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                      </table></td>
                                      <td width="1" align="left" class="admob-BlueBorder"></td>
                                      <td width="328" align="center" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                        <tr>
                                          <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                                            <tr>
                                              <td width="130" height="25">Avg. Clicks / Day : </td>
                                              <td>&lt; 1</td>
                                            </tr>
                                            <tr>
                                              <td height="25">Avg. CPC :</td>
                                              <td>N/A</td>
                                            </tr>
                                            <tr>
                                              <td height="25">Avg. Impressions :</td>
                                              <td>&lt; 1</td>
                                            </tr>
                                            <tr>
                                              <td height="25">Alexa Ranking :</td>
                                              <td>123</td>
                                            </tr>
                                            <tr>
                                              <td height="25">Type :</td>
                                              <td>Text</td>
                                            </tr>
                                            <tr>
                                              <td height="25">Member Since :</td>
                                              <td>03/30/09</td>
                                            </tr>
                                          </table></td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                      </table></td>
                                      <td width="1" align="left" valign="top" class="admob-BlueBorder"></td>
                                      <td width="329" align="center" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                        <tr>
                                          <td class="admob-FormContent">N/A</td>
                                        </tr>
                                        <tr>
                                          <td><img src="images/spacer.gif" alt="" width="10" height="8" /></td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>

                    </table></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="admob-SquareBoxTilteBg">Ad Space Code</td>
                  </tr>
                  <tr>
                    <td class="admob-SquareBoxBorder"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="admob-FormContent">
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td align="center"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><input type="button" name="done" id="done" value="Done" onclick="formSubmit(this.form);" class="admob-InputButton" /></td>
                            <td width="20">&nbsp;</td>
                            <td><input type="button" name="cancel" id="cancel" value="Cancel" onclick="javascript: window.location.href='all_adspaces.php'" class="admob-InputButton" /><input type="hidden" name="descTag" id="descTag"></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="11"><img src="images/admob-leftPanelBottomLeft.jpg" alt="" width="11" height="11" /></td>
                  <td class="admob-LeftPanelBottomBg"><img src="images/spacer.gif" alt="" width="10" height="11" /></td>
                  <td width="11"><img src="images/admob-leftPanelBottomRight.jpg" alt="" width="11" height="11" /></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>

</form>

            

<?php

        //include("footer.php");

}

		?> 